package com.wanxi.coupons.exception;


/**
 * ClassName: MyException
 * Description: 自定义异常类
 * date: 2022/1/14 16:37
 *
 * @author lxl
 * @version 1.0
 * @since JDK 1.8
 */


public class MyException extends RuntimeException  {

    private Integer code;

    private String message;

    public MyException() {
    }

    public MyException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
